#!/usr/bin/env python3 
# -*- coding: UTF-8 -*-

'''
配置当前运行的常量
by lina
'''
""" 初始化 """
def _init():
    global _global_dict
    _global_dict = {}

""" 设置一个全局变量 """
def set_value(key,value):

    _global_dict[key] = value

""" 获得一个全局变量,不存在则返回默认值 """
def get_value(key,defValue=None):
	
    try:
        return _global_dict[key]
    except KeyError:
        return defValue

 

